<template lang="html">
    <div class="survey">
        <div class="survey_top">{{userInfo && userInfo.operator_name}}</div>
        <div class="main">
          <div class='content'>
            <div class="content_one conte">
              <div class="title">资金财务</div>
              <div class="type">
                <div class='price'>￥{{dataList && dataList.balance}}</div>
                <div>可用余额</div>
              </div>
              <div class="type">
                <div class='price'>￥{{dataList && dataList.reflect_money}}</div>
                <div>提现中</div>
              </div>
              <div class="type">
              </div>
              <div class="type">
              </div>
            </div>
            <div class="link-top"></div>
            <div class="content_two conte">
              <div class="title">待办提醒</div>
              <div class="type">
                <div class='price'>{{dataList && dataList.stay_pay_total}}</div>
                <div>待付款</div>
              </div>
              <div class="type">
                <div class='price'>{{dataList && dataList.stay_delivery_total}}</div>
                <div>待收货</div>
              </div>
              <div class="type">
                <div class='price'>{{dataList && dataList.stay_exception_total}}</div>
                <div>异常订单</div>
              </div>
              <div class="type">
                <div class='price'>{{dataList && dataList.stay_refund_total}}</div>
                <div>售后订单</div>
              </div>
            </div>
          </div>
        </div>
    </div>
</template>

<script>
  export default {
    name : "survey",
    data() {
      return {
        userInfo : JSON.parse(window.localStorage.getItem("userInfo")),
        dataList : null
      }
    },
    created () {
      this.getDetail();
    },
    methods : {
      getDetail () {
        this.$HttpGet("/index.php?s=/admin/index/index").then(res => {
          this.dataList = res.data;
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
.survey{
  font-family: PingFang SC;
}
  .survey_top{
    height: 90px;
    line-height: 90px;
    min-width: 1020px;
    width: 95%;
    margin: 0 auto;
    color: #333;
    font-size: 24px;
    font-weight: 700;
  }
  .main{
    width: 100%;
    margin: 0 auto;
  }
  .content{
    min-width: 1020px;
    width: 95%;
    height: 100%;
    margin: 0 auto;
    box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.08);
    .content_one,.content_two{
      background-color: #ffffff;

      .title{
        width: 150px;
        height: 100%;
        text-align: center;
        line-height: 100px;
        font-size: 16px;
        color: #000000;
        font-weight: 700;
      }
      .type{
        width: 25%;
        height: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction:column;
        // border: 1px solid rgba($color: #000000, $alpha: 0.15);
        margin-right: -1px;
      }
    }
  }
  .conte{
    width: 100%;
    height: 100px;
    display: flex;
     margin-top: 1px;
  }
  .link-top{
    width: 100%;
  height: 1px;
  border-top: 1px dotted  rgba($color: #000000, $alpha: 0.03);
  }
  .price{
    font-size: 20px;
        font-family: 500px;
        color: red;
  }
</style>
